<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateProductSlidesTable extends Migration
{
    public function up()
    {
        Schema::create('product_slides', function (Blueprint $table) {
            $table->id();
	        $table->unsignedBigInteger('product_id')->index()->default(0)->comment('product');
	        $table->string('slide')->nullable()->comment('slides');
	        $table->string('brief')->nullable();
            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::dropIfExists('product_slides');
    }
}
